Setup client systemd unit
info
ℹ️ Usa esta unidad systemd para iniciar TunGo automáticamente al reiniciar.
aviso
⚠️ La unidad systemd de TunGo requiere la configuración predeterminada (última usada).
⚙️ Requisitos previos
- TunGo está instalado como se describe en Inicio rápido.
🛠️ Configuración
1️⃣ Crear el archivo de servicio
sudo vim /etc/systemd/system/tungo.service
2️⃣ Pegar esta configuración
[Unit]
Description=TunGo VPN Service
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
ExecStart=tungo c
User=root
Restart=always
RestartSec=5
[Install]
WantedBy=multi-user.target
3️⃣ Habilitar el servicio
sudo systemctl enable tungo.service
4️⃣ Iniciar el servicio
sudo systemctl start tungo.service
5️⃣ Verificar su estado
sudo systemctl status tungo.service